﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class MyClass
{
   
    public static int a = 10;
    public static void Func1()
    {
        Debug.Log("Myclass_Func1:"+a);
    }
    
}
public class StudyBaseClass : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        //MyClass myClass;
      
        int b = MyClass.a;
         Debug.Log("B:" + b);
        MyClass.Func1();
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
